package database;

import java.util.ArrayList;
import java.util.List;

//Account.java
//Represents a customers bank account

/**
 * @author Niels
 *
 */
//		Accounts class
public class Account {
	private int accountNumber; // account number
	private String userId;
	private double bitcoinBalance; // funds available + pending deposits
	private String kontoType;
	private ModelClass modelClass;
	private List<Account> accounts;

	/**
	 * Account constructor initializes attributes
	 * 
	 * @param theAccountNumber
	 * @param theTotalBalance
	 */
	/**
	 * @param theAccountNumber
	 * @param theUserId
	 * @param theBitcoinBalance
	 * @param theKontoType
	 */
	public Account(int theAccountNumber, String theUserId,
			double theBitcoinBalance, String theKontoType) {

		accounts = new ArrayList<Account>();

		this.accountNumber = theAccountNumber;
		this.userId = theUserId;
		this.bitcoinBalance = theBitcoinBalance;
		this.kontoType = theKontoType;
	} // end Account constructor

	public int getAccountNumber() {
		return accountNumber;
	}

	/**
	 * 
	 * @param accountNumber
	 */
	public void setAccountNumber(int accountNumber) {
		this.accountNumber = accountNumber;
	}

	/**
	 * 
	 * @param userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 
	 * @param availableBalance
	 */
	public void setBitcoinBalance(double bitcoinBalance) {
		this.bitcoinBalance = bitcoinBalance;
	}

	/**
	 * 
	 * @param kontoType
	 */
	public void setKontoType(String kontoType) {
		this.kontoType = kontoType;
	}

	/**
	 * 
	 * @return UserId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 
	 * @return totalBalance
	 */
	public double getBitcoinBalance() {
		return bitcoinBalance;
	}

	/**
	 * 
	 * @return kontoType
	 */
	public String getKontoType() {
		return kontoType;
	} // end method credit

}// end class Account

